<template>
  <div class="rdo" :class="{'checked': checked}">
  </div>
</template>

<script>
export default {
  props: {
    checked: [Boolean]
  }
}
</script>

<style scoped lang="less">
@import '../assets/less/var.less';
.rdo {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid @colorPrimary;
  border-radius: 50%;
  position: relative;
  &.checked {
    &::after {
      content: "";
      position: absolute;
      display: block;
      width: 7px;
      height: 7px;
      top: 4px;
      left: 4px;
      background-color: @colorPrimary;
      border-radius: 50%;
    }
  }
}
</style>
